package com.ruoyi.cart.domain.vo;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serial;

/**
 * 商品对象 prod_product
 *

 * @date 2023-07-20
 */
public class Product extends BaseEntity
{
    @Serial
    private static final long serialVersionUID = 8454292198569391341L;
    /** 商品ID
     * */
    private Long proId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String proNumber;

    /** 价格 */
    @Excel(name = "价格")
    private Long proPrice;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String proName;

    /** 商品分类ID */
    @Excel(name = "商品分类ID")
    private Long sortId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long shopId;

    /** 商品状态（1表示上架/0表示下架） */
    @Excel(name = "商品状态", readConverterExp = "1=表示上架/0表示下架")
    private String status;

    /** 品牌ID */
    @Excel(name = "品牌ID")
    private Long brandId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setProNumber(String proNumber)
    {
        this.proNumber = proNumber;
    }

    public String getProNumber()
    {
        return proNumber;
    }
    public void setProPrice(Long proPrice)
    {
        this.proPrice = proPrice;
    }

    public Long getProPrice()
    {
        return proPrice;
    }
    public void setProName(String proName)
    {
        this.proName = proName;
    }

    public String getProName()
    {
        return proName;
    }
    public void setSortId(Long sortId)
    {
        this.sortId = sortId;
    }

    public Long getSortId()
    {
        return sortId;
    }
    public void setShopId(Long shopId)
    {
        this.shopId = shopId;
    }

    public Long getShopId()
    {
        return shopId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setBrandId(Long brandId)
    {
        this.brandId = brandId;
    }

    public Long getBrandId()
    {
        return brandId;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("proId", getProId())
            .append("proNumber", getProNumber())
            .append("proPrice", getProPrice())
            .append("proName", getProName())
            .append("sortId", getSortId())
            .append("shopId", getShopId())
            .append("status", getStatus())
            .append("brandId", getBrandId())
            .append("image", getImage())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
